import Vue from 'vue'
import VueRouter from 'vue-router'
import MyRegister from '../views/MyRegister'
import MyLogin from '../views/MyLogin'
import MyHome from '../views/MyHome'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    name:"myregister",
    component:MyRegister
  },
  {
    path:"/login",
    name:"mylogin",
    component:MyLogin
  },
  {
    path:"/home",
    name:"myhome",
    component:MyHome
  },
]

const router = new VueRouter({
  routes
})

export default router
